From: http://blog.csdn.net/myan/article/details/1919
Misra-C Programming specification as an industrial standard
Misra (the motor industry software reliability Association Automotive Industry software reliability Association) is a UK-based multinational Automotive Industry Association, which includes most European and American automakers. Its core mission is to provide services and assistance to the autom
19. Pre-processing instructions1. The # include statements in the file can only be other preprocessing directives or annotations2. #include指令中的头文件名字里不能出现非标准字符3. #include预处理指令应该跟随 or "filename" sequence4, C macros can only be extended to parentheses
Control Flow1. Cannot have unreachable (unreachable) Code2. All non-empty statements (Non-null statement) should:a) There is at least one side effect of doing it anyway .b) can cause the transfer of control flow3, before preprocessing, the empty
Data types are the most basic components of programming languages, but they are the most easily overlooked. Programmers are willing to spend almost 100% of their energy on Algorithm Research, program flow control, and other aspects, however, it is rare to repeatedly consider data types.
Details determine success or failure. A screw error may lead to the destruction of an aircraft. A data type error can also cause a huge software system to crash.
The data type rules in
a disjointed narrative style, like Pulp fiction .
Abstraction and Specification in program Development-barbara Liskov and John v. Guttag (1986) ( not the N Ewer java-based version by Liskov alone). This is a undergraduate text, with some ideas worth thinking.
Composite/structured Design-glenford J. Myers (1978). This and other books from the late 1970s and early 1980s by Yourdon and Myers provide excellent insights on structured des IGN.
Build Your Own Lisp-daniel Hold
IBM announced the suspension of support for rational logiscope
Withdrawal from marketing of IBM Rational logiscope
Http://www-01.ibm.com/software/rational/info/logiscope/
On September 12,201 2, IBM announced the withdrawal from marketing of IBM Rational logiscope product family.
Additional information can be found in the announcement letter.
Please refer to kalimetrix for additional information regarding logisding.
The partner kalimetrix provided the corresponding products and technical support
assigning constants to hierarchical locks and forcing the order of locks to be obtained.
3) Chandy/misra Solution 1984, K. Mani Chandy and J. Misra proposes another solution to the problem of dining philosophers, allowing arbitrary numbers of users (number P1, ..., Pn) to contend with any number of resources. Unlike Dicos's solution, the numbers here can be arbitrary. 1. For each of the philosophers com
The Control plane collects each switch's results and merges them to providenetwork-wide measurement.
The Control plane should satisfy: Eliminate the extra errors due to fast path (the error shoule only come from Ske Tches themselves.); Must is general to accommodate various measurement tasks.
Skechvisor
Algorithmic Solutions, one builds on counter-based algorithms while the second builds on compressive sens ing to design a network-wide recovery algorithm.
Fast Pa
microcontroller, IAR for AVR to develop Atmel AVR microcontroller, IAR for STM8 used to develop STMicroelectronics STM8 microcontroller and so on. The IAR for ARM is a tool set developed by IAR for ARM Core, its simple user interface, many powerful setting operations, such as automatic misra C rule checking, perfect C99 support and so on. The arm version of IAR supports each series of arm cores, including the Cortex-a8 kernel described in this chapte
language standards set by ISO, and some C library-related standards are appended.
C99 standard/ISO-IEC-9899-TC3 c Standard Library/the C standard library C language: Standard and implementation
Programming specifications:Good habits are summed up by the predecessor based on a large number of mistakes. Although not necessarily suitable for each of us, it is always good. It can prevent some errors and help others understand your code.
Huawei programming specifications-essence of programming: mi
. inline functions
A small inline can reduce the entire size of the program, and vice versa. Suggestion: if there are more than 10 rows of functions, it is better not to inline them. If there are loops and branches in the inline, it is better not to inline, it is not cost-effective.
4,-inL. h header file
Some implementation code can be put here, but do not participate in compilation as CPP alone (only code that is included by some CPP and indirectly involved in compilation can be successful ).
dependent library. for Visual Studio development, it mainly includes four parts: Active Template Library (ATL), Microsoft foundationclass library, standard template library, and Windows 32-bit. Then, click Next.
8. Select some special optimization suggestions, such as code security and efficiency. Select Scott Meyers (valid C ++ more effective C ++ and valid C ++ 3 rdedition), Dan Saks, Misra 2004, next step (PS: Objective C ++, these two major
I couldn't write any better books. It is certain that there are a large number of writing statements in the book ++ I, I ++, and highly relevant to the running results and compiler. Harmful. The running result of another compiler is different. It's really wrong. But this is also an indisputable fact, that is, standardized writing can avoid the risk of porting in multiple compilers.
For the discussion on the efficiency of for (;) and while (1), I personally think:
1. There is no difference betw
-depth teaching material. In single-chip microcomputer, the wildcard type is used less, and even the C ++ is used less. Generally, the level of writing is not low. The level of understanding and understanding of a book is not low. After the selection, you must have the determination to read this book 10 times. I chose a book that was not very good at C ++. After reading it for dozens of times, the book was broken. I found out the advantages, errors, and omissions in the book. Various tags are ma
responsive intelligent systems, and each system requires the provision of safe and reliable functions to meet the various individual needs of users, which requires a software project must have a certain quality assurance methods, such as the most practical static analysis. In particular, industry-critical software systems, such as automotive electronics, medical devices, avionics, etc., that are critical to personal safety.In today's software market, there are public or private enterprises or o
enforcing the ordering of obtaining the locks this problem can be avoided.
// The Key to this solution is to introduce the partial order relationship, and many things will become simple afterwards.
Chandy/Misra Solution
1 for every pair of philosophers contending for a resource, create a fork and give it to the philosopher with
Lower ID. Each fork can either be dirty or clean. Initially, all forks are dirty.
2 when a philosopher wants to use a s
are uploaded, the developer can see in-depth analysis results, including annotated source code, which shows the exact location where the coding specification was violated. The plugin also allows you to add, manage, and report code that violates coding specifications, and automatically proofread code for compliance with coding specifications, such as Misra C. QA Verify also exposes these quality information to other project stakeholders, such as admin
1. read one of the. C file, delete all the comment statements in the file. Then write to the new. C file.Requirements:1. Delete Comment statement function using dynamic link library form2. On the basis of functional realization:--unit testing should be sufficient--To pass all the Misra C's checks--code to conform to code specification.Analysis:Read the file (read the entire file size is limited to 100M, if it is greater than this value, do not proces
Assembly source code Comments are also possible, but the C-language "/* ... * *" comment and "//" are also supported in the IAR assembly source file. It should be noted that strictly speaking "//" is a C + + annotation style, and can not be classified as pure C, and in the current MISRA-C standard is not recommended.
In fact, the C-style pre-compiler in the IAR will pre-compile the assembly source files prior to compilation, so in the IAR Assembler R
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.